#ifndef PUMP_H
#define PUMP_H

#include "STC8A.h"

#define VALVE_VC1_ID    1
#define VALVE_VC2_ID    2
#define VALVE_VC3_ID    3
#define VALVE_VC4_ID    4

#define VALVE_STA_ON    1
#define VALVE_STA_OFF   0

typedef struct {
    u8 valve1;
    u8 valve2;
    u8 valve3;
    u8 valve4;
} ValveState;

sbit PUMP_VC1_PIN = P0^4;
sbit PUMP_VC2_PIN = P0^5;
sbit PUMP_VC3_PIN = P0^6;
sbit PUMP_VC4_PIN = P0^7;


extern u8 valves_sta[4];     /*  */


void VALVE_Init(void);

void VALVE_Status(u8 vc, u8 sta);


#endif
